package hcn.protocol.base.user.service;

import ctd.util.annotation.DicMapping;
import ctd.util.xml.jaxb.DateAdapter;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by chuangye9527 on 16/7/20.
 * 预约挂号平台注册用户联系人 同步到 app用户信息家庭成员
 */
@XmlRootElement(name = "userRequest")
public class UserLinkRegisterBean4Service implements Serializable {
    private String currentusermobile;//当前登录用户手机号\
    private String useridcard;
    private String usercardtype;
    private String realname;//姓名
    private String cardtype;//证件类别（01：身份证；03：护照；06：港澳通行证；07：台湾通行证）
    private String idcard;//证件号码
    private String sexcode;//性别(1:男  2:女)
    private Date birthdate;//生日(数据格式：yyyy-MM-dd)
    private String mobile;//手机号
    @DicMapping(dic = "nationalityForReg&hcn-base-dictionary-nationality")
    private String nationality;//国籍(1：中国大陆；2：中国港澳；3：中国台湾；9：海外同胞）
    private boolean certificated;
    private String relation;

    public String getCurrentusermobile() {
        return currentusermobile;
    }

    public void setCurrentusermobile(String currentusermobile) {
        this.currentusermobile = currentusermobile;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getCardtype() {
        return cardtype;
    }

    public void setCardtype(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getSexcode() {
        return sexcode;
    }

    public void setSexcode(String sexcode) {
        this.sexcode = sexcode;
    }

    @XmlJavaTypeAdapter(DateAdapter.class)
    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public boolean isCertificated() {
        return certificated;
    }

    public void setCertificated(boolean certificated) {
        this.certificated = certificated;
    }

    public String getUseridcard() {
        return useridcard;
    }

    public void setUseridcard(String useridcard) {
        this.useridcard = useridcard;
    }

    public String getUsercardtype() {
        return usercardtype;
    }

    public void setUsercardtype(String usercardtype) {
        this.usercardtype = usercardtype;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }
}
